/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package action.entrenador.reporte;

import DBMS.DataBaseManager;
import clases.InasistenciaForm;
import clases.busquedaForm;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

/**
 *
 * @author miguel
 */
public class AccionListarInasistencia extends org.apache.struts.action.Action{
    
      @Override
    public ActionForward execute(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response)
            throws Exception {
         busquedaForm b = (busquedaForm) form;
        final int SALIDA_0 = 0;
        int salida = SALIDA_0;
        DataBaseManager dbms = DataBaseManager.getInstance();
        ArrayList<InasistenciaForm> Inasis = dbms.cargarInasistencias(b,(String)request.getSession().getAttribute("Login"));
        request.getSession().setAttribute("inasis",Inasis);

        return mapping.findForward("avanzar");
}
}